﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using DWGdirect.DatabaseServices;

namespace FXnaCAD
{
    /// <summary>
    /// 所有写类型的基类
    /// </summary>
    public abstract class BaseWriter
    {



        //需要所有的图层名称

        List<string> _layers;

        /// <summary>
        /// 所有可见的需要读入的图层名称
        /// </summary>
        public List<string> Layers
        {
            get { return _layers; }
            
        }


        public virtual void InitLayers(List<string> layers)
        {
            this._layers = layers;



 
        }



        public virtual void WriteEntity(Arc arc)
        {
 
        }

        public virtual void WriteEntity(Circle circle)
        {
 
        }

        public virtual void WriteEntity(DBPoint point)
        {
 
        }


        public virtual void WriteEntity(Line line)
        {
 
        }


        public virtual void WriteEntity(Polyline poly)
        {
 

        }

        public virtual void WriteEntity(Ellipse ell)
        {



        }


        //文字

        public virtual void WriteEntity(DBText text)
        {


        }



    }
}
